package com.party.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 资源
 * </p>
 *
 * @author ccl
 * @since 2024-10-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="PbUserResourceHistory对象", description="资源")
public class PbUserResourceHistory extends Model<PbUserResourceHistory> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "openId")
    private String openId;

    @ApiModelProperty(value = "资源id")
    private Long resourceId;

    @ApiModelProperty(value = "资源名称")
    private String resourceName;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "简介")
    private String briefIntroduction;

    @ApiModelProperty(value = "出版社")
    private String press;

    @ApiModelProperty(value = "大类id")
    private Long dataTypeId;

    @ApiModelProperty(value = "中图法id")
    private Long bookTypeId;

    @ApiModelProperty(value = "浏览量")
    private Long pageView;

    @ApiModelProperty(value = "封面")
    private String cover;

    private String status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "排序")
    private Long type;

    @ApiModelProperty(value = "总字数")
    private Long totalWords;

    @ApiModelProperty(value = "出版时间")
    private Date publishTime;

    @ApiModelProperty(value = "是否推荐")
    private Integer sfRecommend;

    @ApiModelProperty(value = "所属用户")
    private String userCode;

    @ApiModelProperty(value = "所属用户")
    private String userName;

    @ApiModelProperty(value = "点赞数量")
    private Integer likeCount;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
